Release 10.1A: OpenEdge Development:
ADM Reference


addNode

Procedure that adds a node to the tree.

Location: treeview.p

Parameters:

INPUT phBuffer AS HANDLE

Handle to buffer of temp-table tTreeData used to defined the node.

Table 3–3 lists and describes the fields and temp-table includes defined in TVController.

Table 3–3: Temp-table includes for the fields defined in
TVController
Field
Temp-table includes
node_key
Unique key of node.
parent_node_key
Key of either parent node or sibling node (depending on node_insert).
node_label
Label of node that appears in TreeView.
private_data
Information stored for the node in the node's TAG property.
image
Relative path and filename of the image of the node.
selected_image
Relative path and filename of the node when it is selected. If blank, it uses the same image as the image field.
node_insert
Specifies where to insert the node, relative to the parent:
0 - As first node at same level as the parent_node_key
1 - As last node at same level as the parent_node_key
2 - After (next) the parent_node_key
3 - Before (previous) the parent_node_key
4 - As child of parent_node_key
node_sort
If TRUE, sort node (This must be specified for all nodes within the same level). Default is FALSE.
node_expanded
If TRUE, expand node upon adding it to TreeView.
Default is FALSE.
node_checked
If TRUE, and property 'ShowCheckBoxes' is TRUE, the node appears checked. Default is FALSE.

Notes: This procedure is called from populateTree but can be called by itself.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095